import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
//import './assets/main.css'
import '@/styles/common.scss'
import { lazyPlugin } from "@/directives/golble.js"
import { componentPlugin } from '@/components/index'

const app = createApp(App)
const pinia = createPinia()
//pinia添加持久化插件
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.use(router)
//app.use(ElementPlus)
// 插入自定义插件
app.use(lazyPlugin)
app.use(componentPlugin) 
app.mount('#app')
